package com.crungoo;

import java.util.Locale;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * @author fujc-dev@qq.com
 * @description TODO
 * @date 2023/6/27 12:54
 */

public class 国际化Programs {

	public static void main(String[] args) {
		AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(AppConfig.class);
		System.out.println(context.getMessage("test", null, Locale.CHINESE));
		System.out.println(context.getMessage("test", null, Locale.ENGLISH));
	}
}
